from interface_practice.frame.apis.wework import Wework


class Contract(Wework):

    def __init__(self):
        self.get_token()

    def get_token(self):
        # corpid = "ww75abb8519b57cec6"
        # corpsecret = "vvavK-3lew1LhtP2sLdfkvV2Pc9ta8kbSdY-d7U5V0o"
        corpid = self.cong_data.get("corpid").get("mycorp")
        corpsecret = self.cong_data.get("secrets").get("contract")
        self.get_access_token(corpid, corpsecret)
